package com.fresh.fresh.service.lmpI;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.fresh.fresh.dao.Commodity;
import com.fresh.fresh.mapper.CommodityMapper;
import com.fresh.fresh.service.CommodityService;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CommodityServiceImpl extends ServiceImpl<CommodityMapper,Commodity> implements CommodityService {

    @Override
    public List<Commodity> list() {
       return this.baseMapper.selectList(null);
    }

    @Override
    public List<Commodity> search(String name) {
       return this.baseMapper.search(name);
    }


}
